import React from 'react';
import { Row, Col } from 'antd';

export default class ThemeItem extends React.Component {
  render() {
    const { label, visible = true, children } = this.props;

    if (false === visible) return null;

    return (
      <Row>
        <Col span={6}>{label}</Col>
        <Col span={18}>{children}</Col>
      </Row>
    )
  }
}